<!DOCTYPE html>
<html class="" itemscope="" itemtype="https://schema.org/WebSite" <?php language_attributes();?>>

<head>
    <meta charset="<?php bloginfo('charset');?>" />
    <title>
        <?php __title()?>
    </title>
    <meta name="theme-color" content="#3f51b5"/>
    <link rel="manifest" href="<?php echo get_stylesheet_directory_uri() ?>/manifest.json">
    <meta name="description" content="<?php bloginfo('description');?>">
    <meta name="renderer" content="webkit">
    <meta name="applicable-device" content="pc,mobile">
    <meta name="site" content="<?php echo home_url(); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10">
    <meta name="description" content="<?php kbk_e('sitedec')?>">
    <?php
    while (have_posts()): the_post();
    ?>
        <?php 
        if (kbk('baidu-seo') && is_singular(array('post', 'page'))):
            global $post;
        ?>
            <meta property="og:type" content="blog" />
            <meta property="og:image" content="<?php echo catch_that_image(); ?>" />
            <meta property="og:release_date" content="<?php the_date();?>" />
            <meta property="og:title" content="<?php __title()?>" />
            <meta property="og:description" content="<?php the_excerpt();?>" />
            <meta property="og:author" content="<?php the_author()?>" />
        <?php endif;?>
    <?php endwhile;?>
    <?php wp_head();?>
    <div class="mdui-hidden-xl-down">
    	<?php kbk_e('statistical-code');?>
    </div>
</head>

<body class="mdui-theme-primary-indigo mdui-theme-accent-pink mdui-appbar-with-toolbar" itemscope="" itemtype="http://schema.org/WebPage">
    <?php get_template_part('homecat/menu', '');?>
    <div id="search" style="display: none">
        <?php get_search_form()?>
    </div>
    <div class="rightmenu mdui-color-theme">
        <div class="m">
            <div class="item mdui-color-theme" onclick="javascript:nightmode();">
                <i class="mdui-icon material-icons">&#xe3ac;</i>
                <span class="mdui-color-theme-accent desc">昼夜切换</span>
            </div>
            <div class="item mdui-color-theme join_favorite">
                <i class="mdui-icon material-icons">&#xe838;</i>
                <span class="mdui-color-theme-accent desc">收藏本站</span>
            </div>
            <?php if (kbk('QQ-display-is-enable')): ?>
            <div class="item mdui-color-theme qq" onclick="javascript:window.location.href='http://wpa.qq.com/msgrd?v=3&uin=<?php kbk_e('QQ-ID');?>&site=qq&menu=yes'">
                <i class="mdui-icon material-icons">&#xe0b7;</i>
                <span class="mdui-color-theme-accent desc">联系QQ</span>
            </div>
            <?php endif;?>
        </div>
    </div>
    <div class="mdui-container content">
        <noscript>
            <div class="tip error script-none">没有运行JS的权限，本网站无法正常显示</div>
        </noscript>
        <div class="tip error screen-small">显示屏过小，本网站无法正常显示</div>
        <div class="tip error offline"><i class="mdui-icon material-icons">&#xe000;</i>你处于离线状态，正在显示缓存网页</div>
        <div class="mdui-row">
            <div class="notice-wrapper">
                <div id="notice">
                    <?php
                    $args = array('post_type' => 'notice', 'post_status' => 'publish');
                    query_posts($args);
                    if (have_posts()): while (have_posts()): the_post();
                    ?>
                    <div class="mdui-text-truncate">
                        <i class="mdui-icon material-icons">&#xe050;</i>
                        <a href="<?php the_permalink();?>">
                            <?php echo get_the_content();?>
                            <span class="mdui-text-right">
                                <i class="mdui-icon material-icons">&#xe192;</i>
                                <time>
                                    <?php the_date();the_time();?>
                                </time>
                            </span>
                        </a>
                    </div>
                    <?php
                    endwhile;
                    endif;
                    wp_reset_query();
                    ?>
                </div>
            </div>
        </div>